<!DOCTYPE html>
<html lang="en" xmlns:th=http://www.thymeleaf.org
      xmlns:sec=http://www.thymeleaf.org/extras/spring-security>

<head>
    <meta charset="UTF-8">
    <title>Login</title>
    <link rel="stylesheet" href="static/style.css"/>
</head>
<body>
<form action="/doLogin" method="post">
    <div class="box">
        <h2>Login</h2>
        <div class="input-box">
            <label>账号</label>
            <input name="username" type="text" placeholder="用户名" class="ad-input">
        </div>
        <div class="input-box">
            <label>密码</label>
            <input name="password" type="password" placeholder="密码" class="ad-input">
        </div>
        <input th:name="${_csrf.parameterName}" th:value="${_csrf.token}" type="hidden">
        <div class="btn-box">
            <a href="#">忘记密码?</a>
            <div>
                <button>登录</button>
                <button>注册</button>
            </div>
        </div>
    </div>
</form>
</body>
</html>

